<?php


namespace app\admin\controller;


use app\admin\model\Pay as PayModel;
use think\Paginator;

class Pay extends Base
{
    //支付方式页面
    public function lists()
    {

        //遍历商品表
        $pay = PayModel::where(['pay_del'=>0])->paginate(4);
        $payPage = $pay->render();

        //传值,渲染页面
        $webSite = WEB_SITE;
        $staticAdmin = STATIC_ADMIN;

        $this->assign([
            'webSite' => $webSite,
            'staticAdmin' => $staticAdmin,
            'pay' => $pay,
            'payPage' => $payPage,

        ]);

        return $this->fetch();
    }

}